package com.kitchen.beans.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentVo {
    /*
     * 评论ID
     * */
    @Id
    @Column(name = "comm_id")
    private Integer commId;

    /*
     * 用户ID
     * */
    @Column(name = "user_id")
    private Integer userId;

    /*
     * 作品ID
     * */
    @Column(name = "f_id")
    private Integer fId;

    /*
     * 点赞数
     * */
    @Column(name = "comm_praise")
    private Integer commPraise;

    /*
     * 评论
     * */
    @Column(name = "comm_content")
    private String commContent;

    /*
     * 评论时间
     * */
    @Column(name = "comm_time")
    private String commTime;


    /*
     * 判断是否为作者评论（1是作者，0是用户）
     * */
    @Column(name = "comm_grade")
    private Integer commGrade;

    /*
     * 对哪个评论id进行评论
     * */
    @Column(name = "to_answerid")
    private Integer toAnswerid;

    /*
     * 评论根
     * */
    @Column(name = "comm_root")
    private Integer commRoot;

    /*
     * 评论级别
     * */
    @Column(name = "comm_level")
    private Integer commLevel;

    private String uName;//根据id显示该用户姓名
    private String uImg;//根据id显示该用户头像
    private Integer touserId;//对该用户id回复
    private String touserName;//对该用户名称回复
    private Integer thisuserId;//当前系统登录用户
    private Integer praiseStatus;//点赞状态
    private List<CommentVo> commentVos;

}
